package com.antu.first.dto;

import com.antu.first.bean.Hotel;
import com.antu.first.enums.HotelStateEnum;

import java.util.List;

/**
 * Created by Administrator on 2018/3/13.
 */
public class HotelOperationExecution {

    private int state;

    private String stateInfo;

    private Hotel hotel;

    private List<Hotel> hotels;

    private int count;

    public HotelOperationExecution(HotelStateEnum stateEnum) {
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
    }

    public HotelOperationExecution(HotelStateEnum stateEnum, Hotel hotel) {
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.hotel = hotel;
    }

    public HotelOperationExecution(HotelStateEnum stateEnum, List<Hotel> hotels) {
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.hotels = hotels;
    }

    public int getState() {

        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public Hotel getHotel() {
        return hotel;
    }

    public void setHotel(Hotel hotel) {
        this.hotel = hotel;
    }

    public List<Hotel> getHotels() {
        return hotels;
    }

    public void setHotels(List<Hotel> hotels) {
        this.hotels = hotels;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
